package autogen;

<%@page import="static hh.EmptyUtil.*" %>
<%String doName = toCamelCaseRemovePreAndSuffix(table.tableName, "st", "1");%>

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
import com.baomidou.mybatisplus.extension.service.IService;
import autogen.domain.<%=doName%>DO;
import autogen.domain.<%=doName%>PageDTO;

import java.util.List;

/**
 * <%=table.tableName%>表 Service
 * @author mybatis-orm auto generator
 */
public interface <%=doName%>Service{

    boolean create(<%=doName%>DO entity);
    
    boolean createBatch(List<<%=doName%>DO> entities);
    
    boolean deleteById(Long id);
    
    boolean deleteBatchByIds(List<Long> ids);
    
    boolean delete(<%=doName%>DO entity);
    
    <%=doName%>DO findById(Long id);
    
    List<<%=doName%>DO> listPage(<%=doName%>PageDTO query);
    
    List<<%=doName%>DO> list(<%=doName%>DO entity);
    
    <%=doName%>DO findOne(<%=doName%>DO entity);
    
    boolean updateById(<%=doName%>DO entity);
    
    boolean updateBatchByIds(List<<%=doName%>DO> entities);
}
